package com.net.innerclass;


class OuterClass
{
	private int x = 200;
	class InnerClass
	{
		private int ans;
		public void getValue()
		{
			display();
			System.out.println("Outer class vlaue  " +x);
		}
		
		
		public void display()
		{
		  System.out.println(" inner display ");
			
		}

		
	}


public void display()
{
  System.out.println(" outer display ");
	
}

public void accessInner()
{
	InnerClass obj = new InnerClass();
	obj.ans = 500;
	System.out.println("inner class value " +obj.ans);
}


}




public class InsideTheClass {

	public static void main(String[] args)
	{   
		OuterClass outObj = new OuterClass();
		OuterClass.InnerClass inner = outObj.new InnerClass();
		inner.getValue();
        outObj.accessInner();
	}

}
